﻿using System;
using System.Configuration;

namespace Components.Configuration
{
  internal class ControlBuilderReference : ConfigurationElement
  {
    [ConfigurationProperty("name", IsKey = true, IsRequired = true)]
    public String Name
    {
      get { return this["name"] as String; }
    }

    public String Key
    {
      get { return this.Name.ToLowerInvariant(); }
    }

    [ConfigurationProperty("type", IsRequired = true)]
    public String Type
    {
      get { return this["type"] as String; }
    }
  }
}